﻿package fwk.loaderManager.events
{
	import flash.events.Event;
	
	public class LoaderEvent extends Event
	{
		
		/**
		 * Dispatch when an error occurs
		 */
		public static const LOAD_ERROR:String = "LOAD_ERROR";
		
		/**
		 * Dispatch during the loading
		 */
		public static const PROGRESS:String = "PROGRESS";
		
		/**
		 * Dispatch when the loading of the stake is complete
		 */
		public static const COMPLETED:String = "COMPLETED";
		
		public static const PRIORITY_PROGRESS:String = "PRIORITY_PROGRESS";
		public static const PRIORITY_COMPLETED:String = "PRIORITY_COMPLETED";
		
		/**
		 * The percent between 0 and 1.
		 */
		public var percent:Number;
		
		public function LoaderEvent(type:String)
		{
			// Call the constructor of the superclass.
			super(type);
		}
		
	}
	
}